<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	
	<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
	<title>绑定结算卡</title>
    
    <link rel="stylesheet" type="text/css" href="css/style.css">
    <link rel="stylesheet" type="text/css" href="css/login.css">
    <link rel="stylesheet" type="text/css" href="css/index.css">
    <script type="text/javascript" src="js/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="js/util.js"></script>
    <script type="text/javascript" src="js/payCard.js"></script>
</head>

<body> 
  <div class="container">
    <div class="inputList">
      <span class="inputTitle">持卡人：</span>
      <p class="inputCount"><input type="text" id="loginPhone" placeholder="必须与您的银行卡户名一致"></p>
    </div>
    <div class="inputList">
      <span class="inputTitle">卡  号：</span>
      <p class="inputCount"><input type="text" id="loginPhone" placeholder="请填写信用卡号"></p>
    </div>
    <div class="inputList">
      <span class="inputTitle">登记手机号：</span>
      <p class="inputCount"><input type="text" id="loginPhone" placeholder="请输入银行登记手机号"></p>
    </div>
    <div class="inputList inputListNoneBd">
      <span class="inputTitle">所属银行：</span>
      <p class="inputCount">
        <select id="card_bankid">
          <option text="中国银行">中国银行</option>
          <option text="工商银行">工商银行</option>
          <option text="民生银行">民生银行</option>
          <option text="建设银行">建设银行</option>
        </select>
      </p>
    </div>
  </div>
  <div class="bdColor10"></div>
  <div class="container">
    <div class="chooseImgDiv" style="padding:25px 0;">
      <a href="javascript:void(0)"><img src="images/idCardFour.png" class="img" /></a>
      <p>银行卡正面照</p>
    </div>
    <a href="javascript:util.isLoadingHide()" class="sureBtn">确定</a>
  </div>
</body>

<script>
	function abc(){
				  var bank_name = '中国工商银行';
				  //var bank_name2 = '';
//				  if(bank_name.indexOf('中国')>=0){
//					  bank_name2 = bank_name.slice(2);
//					}else{
//						bank_name2 = '中国'+bank_name;
//					}
//					bank_name = '';
//				  var a = 	bank_name||bank_name2;
//				  alert(a);
				  //console.log($("#card_bankid").find("option[text='"+a+"']").val());
				  $("#card_bankid").find("option").each(function(i, o) {
					  var val = $(o).val();
                    if(val.indexOf(bank_name)>=0||bank_name.indexOf(val)>=0){
						$(o).attr("selected",true);
					}
                });
			}
			util.isLoadingShow();
</script>
</html>